package com.zhangyx.crawler.captcha;

import com.zhangyx.crawler.comm.ThreadUtil;
import com.zhangyx.crawler.core.browser.BrowserUtil;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;

public class GeeTest {
    public static void v2(ChromeDriver driver) {

    }

    public static void main(String[] args){
        ChromeDriver driver = BrowserUtil.createChromeDriver();
        try {
            driver.get("http://www.geetest.com/type/");
            ThreadUtil.sleepMills(1000*1);
            WebElement index3 = driver.findElementByCssSelector("#app > section > div > ul > li:nth-child(3)");
            index3.click();
            ThreadUtil.sleepMills(1000*5);
            WebElement radarBtn = driver.findElementByCssSelector(".geetest_radar_tip_content");
            radarBtn.click();
        } catch (Exception e) {
            e.printStackTrace();
        }
        ThreadUtil.sleepMills(1000*10);
        driver.quit();
    }
}
